package com.hsmw.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author 田佳宇
 * @since 2020-12-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@ToString
@AllArgsConstructor
@Builder
@TableName("hsmw_menu")
@ApiModel(value = "HsmwMenu对象", description = "权限表")
public class HsmwMenu extends BaseModel {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "父级id")
	private String parentId;

	@ApiModelProperty(value = "权限名称")
	private String name;

	@ApiModelProperty(value = "匹配地址")
	private String component;

	@ApiModelProperty(value = "前端用来控制路由的元数据")
	private Object meta;

	@ApiModelProperty(value = "子路由使用的path")
	private String path;

	@ApiModelProperty(value = "重定向")
	private String redirect;

	@ApiModelProperty(value = "该权限所属的终端类型")
	private String type;

	@ApiModelProperty(value = "逻辑删除标记")
	private boolean flag;


	@ApiModelProperty(value = "排序")
	private Integer sort;


}
